#!/usr/bin/env python3
import rospy
from custom_msg.msg import CustomMsg

def callback(msg):
    rospy.loginfo(f"Received: {msg.number:.2f} | {msg.text}")

if __name__ == '__main__':
    rospy.init_node('py_subscriber')
    rospy.Subscriber("custom_topic", CustomMsg, callback)
    rospy.spin()
